<?php
include_once(_APP_PATH. "modules/controlls/controllers/params/params_field.php");
class ParamsFieldText extends ParamsField{

	public function PreparePostData($fieldPostData)
	{
		$fieldPostData = (string)$fieldPostData;
		
		if ($this->GetParam('max') && ($this->Libs()->str->Len($value) > $this->GetParam('max'))) 
		{
			$fieldPostData = $this->Libs()->str->SubStr($fieldPostData, 0, $f['max']);
		}
		
		return $this->Libs()->str->EscapeAbsoluteUrls($fieldPostData);
	}

	public function PrepareOutData($fieldData)
	{
		return (string)$fieldData;
	}	
	
}